package com.sinosoft.jwjw.component.mapper.system;

import com.sinosoft.jwjw.base.BaseCrudMapper;
import com.sinosoft.jwjw.component.model.system.SMenu;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface SMenuMapper extends BaseCrudMapper<SMenu, String> {

    /**
     * 查询用户权限菜单    查询用户某个系统的-所有角色union all以后的菜单的权限
     * @param params 必传参数：@userId String
     *                 @systemId String
     * @return
     */
    List<SMenu> selectAuthMenuBySystemIdAndUserId(Map<String, Object> params);
}